#include <iostream>

using std::cout;
using std::endl;

int number = 1;

namespace wd
{
int number = 20;

class Example
{
public:
    Example(int value)
    : number(value)
    {

    }
    void print(int number)
    {
        cout << "形参number = " << number << endl;
        cout << "数据成员number = " << this->number << endl;
        cout << "数据成员number = " << Example::number << endl;
        cout << "命名空间中number = " << wd::number << endl;
        cout << "全局变量number = " << ::number << endl;
    }
private:
    int number;
};//end of class Example

}//end of namespace wd

int main(int argc, char **argv)
{
    wd::Example  ex(100);
    ex.print(5000);
    return 0;
}

